from rest_framework.generics import ListAPIView, CreateAPIView, RetrieveAPIView, UpdateAPIView, DestroyAPIView
from xiaochengxu import models
from xiaochengxu.serializer.topic_serializers import GetTopicSerializers

class GetTopic(ListAPIView):
    authentication_classes = []
    queryset = models.Topic.objects.all()
    serializer_class = GetTopicSerializers